Solaris port. Currently sees around 200 test failures, mostly related to Solaris not providing some of the locales that the test suite uses. Note: This depends on an xlocale (partial) implementation for Solaris and a couple of fixed standard headers. These will be committed to a branch later today. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@151720 91177308-0d34-0410-b5e6-96231b3b80d8 
diff --git a/include/cstdlib b/include/cstdlib index 5d8a9d7..1158db2 100644 --- a/include/cstdlib +++ b/include/cstdlib 
@@ -132,7 +132,8 @@  using ::mbstowcs;  using ::wcstombs;   -#ifndef _MSC_VER // MSVC already has the correct prototype in <stdlib.h.h> #ifdef __cplusplus +// MSVC already has the correct prototype in <stdlib.h.h> #ifdef __cplusplus +#if !defined(_MSC_VER) && !defined(__sun__)  inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) {return labs(__x);}  inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) {return llabs(__x);}